package com.up.upzl.biz.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.up.upzl.base.domain.BaseDomain;

import lombok.Getter;
import lombok.Setter;

/**
 * 用户管理（经纪人）
 * 
 * @author joker
 *
 */
@Getter
@Setter
@Entity
public class User extends BaseDomain {

	private static final long serialVersionUID = 2331253027008138266L;
	/**
	 * 账号
	 */
	@Column(unique = true)
	private String account;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 状态
	 */
	private Status status;

	public enum Status {
		锁定, 正常
	}

	/**
	 * 首次登陆时间
	 */
	private Date firstTime;

	public enum Platform {
		Android, IOS
	}

	/**
	 * 客户端平台
	 */
	private Platform platform;

	/**
	 * 客户端CID
	 */
	private String cid;

	/**
	 * 累计登陆次数
	 */
	private Integer loginCount;

}
